a tsunami warning for islands in japan 's far south has been cancelled .
a very shallow quake hit yonaguni in the southwest , near taiwan .
witnesses said buildings swayed in taipei but there was no visible damage .